<#include "/include/head.html">
<html>
    <title></title>

<body ng-app>
    <form action="/register" id="registerForm" method="post">
        <input type="text" ng-model="username" name="username" id="username" placeholder="请输入用户名">
        <input type="password" ng-model="password" ng-init="123123123" name="password" id="password" placeholder="请输入密码">
        <button type="button" onclick="toSub()">注册</button>${msg!}
    </form>
</body>
<script>
    function toSub() {

        if(ifBlank($("#username").val(),"用户名不能为空")){
            return
        }
        if(ifBlank($("#password").val(),"密码不能为空")){
            return
        }

        $("#registerForm").submit();
    }
</script>
</html>